// 主题色
$tc: #ec8a28;
$blue: #2a6cee;
$bc: #faf6f1;
$fc: #fff;
$commonPadding:0 .4rem;

// 背景图片地址和大小
@mixin bis($url) {
	background-image: url($url);
	background-repeat: no-repeat;
	background-size: 100% 100%;
}

@mixin borderRadius($radius) {
    -webkit-border-radius: $radius;
    -moz-border-radius: $radius;
    -ms-border-radius: $radius;
    -o-border-radius: $radius;
    border-radius: $radius;
}
//定位全屏
@mixin allcover{
	position:absolute;
	top:0;
	right:0;
}

//定位上下左右居中
@mixin center {
	position: absolute;
	top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

//定位上下居中
@mixin ct {
	position: absolute;
	top: 50%;
    transform: translateY(-50%);
}

//定位左右居中
@mixin cl {
	position: absolute;
	left: 50%;
    transform: translateX(-50%);
}

//字体大小、行高、字体
@mixin font($size, $line-height, $family: 'Microsoft YaHei') {
	font: #{$size}/#{$line-height} $family;
}

//  文本超出显示省略号
@mixin elli() {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

//字体大小，颜色
@mixin fsc($size, $color){
	font-size: $size;
	color: $color;
}
//宽高
@mixin wh($width, $height: $width){
  width: $width;
  height: $height;
}

//宽高行高
@mixin whl($width, $height: $width){
  width: $width;
  height: $height;
  line-height: $height;
}

// flex布局和子元素主轴对其方式
@mixin fj($type: space-between){
	display: flex;
	justify-content: $type;
}

// flex布局和子元素交叉轴对其方式
@mixin fa($items: center){
  display: flex;
  align-items: $items;
}

// flex布局和子元素主轴、交叉轴对其方式
@mixin fja($type: space-between, $items: center){
  display: flex;
  justify-content: $type;
  align-items: $items;
}


